import {createSlice} from "@reduxjs/toolkit";
import useSetStorage from "@/hooks/useSetStorage";

export const mySlice = createSlice({
    name: "mySlice",
    initialState: () => {
      return {
        notice: 0,
      };

    },
    reducers: {
      set_notice(state,action){
        state.notice = action.payload
      },
    }
});

export const {
  set_notice,
} = mySlice.actions;